package com.worldcup.dao;

import com.worldcup.model.PredictGroup;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duwan.zq
 */
@Mapper
@Repository
public interface PredictGroupMapper {
    int deleteByPrimaryKey(Integer id);



    int insertSelective(PredictGroup record);

    PredictGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PredictGroup record);

    int updateByPrimaryKey(PredictGroup record);



    /**
     * selectByOpenid
     * @param openid
     * @return
     */
    List<PredictGroup> selectByOpenid(String openid);

    /**
     * insert
     * @param record
     * @return
     */
    int insert(PredictGroup record);

    /**
     * batch insert
     * @param groups
     */
    void batchInsert(List<PredictGroup> groups);

    /**
     * delete
     * @param openid
     */
    void deleteByOpenid(String openid);
}